package com.guochaojava.service.impl;

import com.guochaojava.dao.RecordDetailMapper;
import com.guochaojava.model.RecordDetail;
import com.guochaojava.service.RecordDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 比赛记录详情
 *
 * @author guochao
 * @since 1.0.0
 */
@Service
public class RecordDetailServiceImpl implements RecordDetailService {

    @Autowired
    private RecordDetailMapper dao;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dao.deleteByPrimaryKey(id);
    }

    @Override
    public int insertSelective(RecordDetail record) {
        return dao.insertSelective(record);
    }

    @Override
    public RecordDetail selectByPrimaryKey(Integer id) {
        return dao.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(RecordDetail record) {
        return dao.updateByPrimaryKeySelective(record);
    }

    @Override
    public int totalById(Integer id) {
        return dao.totalById(id);
    }

    @Override
    public int iniWinByMemberId(Integer id) {
        return dao.iniWinByMemberId(id);
    }

    @Override
    public int accWinByMemberId(Integer id) {
        return dao.accWinByMemberId(id);
    }
}